{template "content","head"}
<!-- 主体 -->
<style>
.neirong{text-align:left !important;font-size:14px;color:#666;line-height:25px;}
</style>
<div class="container">
    <div class="mainOut">
        <div class="main public_2col">
            
            <div class="main_right grid_84 ov_h">
                <!-- InstanceBeginEditable name="EditRegion5" -->
                <div class="alltitle">
                <span class="crumbs">
                    您的位置： <a href="{siteurl($siteid)}" title="首页">首页</a>
                    &nbsp;>&nbsp;{catpos($catid, $s = ' > ')}&nbsp;
                </span>

                </div>

                <div class="news_list right_main pt25 pb15">
                    <div id="lib_product_detail">
                        <div class="info">
                            <div class="fl img" style="float:left;">
                                <div id="bigimg"><img src="{$thumb}" alt="{$title}" title="{$title}" /><span></span></div>
                                <div id="smallimg">
                                    <a id="prev"><img src="{IMG_PATH}my/lef.jpg" /></a>
                                    <a id="next"><img src="{IMG_PATH}my/rig.jpg" /></a>
                                    <div id="smallimg_list">
                                        <ul id="scrol">
                                            <li style="padding:0;"><img src="{$thumb}" width="80" height="56" /><span></span></li>
                                            {pc:get sql="SELECT pics FROM sy_product_data where id = $id"}
                                            {loop $data $val}
                                            {php $pic_list=string2array($val[pics])}
                                            {loop $pic_list $v}
                                            <li style="padding:0;"><img src="{$v[url]}" width="80" height="56" /><span></span></li>
                                            {/loop}
                                            {/loop}
                                            {/pc}

                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div class="fr pro_info" style="float:right;width:560px;">
                                <div class="name" style="padding-top:0;">{$title}</div>
                                <div class="brief">品牌：{$CATEGORYS[$catid][catname]}<br />
                                    参数：{$CATEGORYS[$catid][canshu]}<br />
                                    封装：{$CATEGORYS[$catid][fengzhuang]}<br />
                                <div class="cont">
                                    <div class="hotline">{$contact[name]} : <font>{$contact[phone]}</font></div>
                                    <a href="javascript:void(0);" class="buffalo-a">
                                        在线咨询
                                    </a>
                                    <a href="javascript:void(0);" class="buffalo-a" style="background:#0643ad">
                                        在线下单
                                    </a>
                                </div>
                            </div>
                            <div class="clear"></div>
                        </div>
                    </div>
                    </div>
					<div class="change">
						<div class="thh on">内容</div>
						<!-- <div class="thh">产品规格书</div> -->
					</div>
                    <div class="neirong">
						<div class="tdd">
							{$content}
						</div>
                        
						<div class="clear"></div>
                    </div>
					<style>
						<!-- .neirong{text-align:center;} -->
						.change{width:100%;border:1px solid #ccc;margin:20px 0;}
						.change .thh{display:inline-block;width:80px;font-size:14px;line-height:30px;padding:5px;text-align:center;cursor:pointer;}
						.change .on{color:#fff;background:#0643ad;border-right:1px solid #0643ad;}
					</style>
					<script>
						$(".change .thh").click(function(){
							var index=$(this).index();
							$(this).addClass('on').siblings().removeClass('on');
							console.log(index)
							$('.neirong .tdd').eq(index).show().siblings().hide()
						})
					</script>
                    <div class="fanye">
                        <a href="{$previous_page[url]}">上一篇：{$previous_page[title]}</a>
                        <a href="{$next_page[url]}" style="float:right;">下一篇：{$next_page[title]}</a>
                    </div>
<style>

#chan{width: 940px;height: 950px;background:url(/statics/images/tem/cp_bg.png)no-repeat center;}
#chan #chanp{width: 940px;margin: 0 auto;}
#chan #chanp .top{text-align: center;color: #333;line-height: 50px;font-size: 18px;}
#chan #chanp .top p{font-size: 50px;font-weight: bold;margin-top: 30px;font-family: "宋体";color:#017bc4;padding-top: 70px;}
#tablit {width:940px; margin:0 auto; height:auto; margin-top:20px;}
#tablit dl{width:950px;  height:47px;margin:0 auto;}
#tablit dl dd{float:left; width:140px;  height:47px; line-height:47px; text-align:center; display:block; margin-left:10px;}
#tablit .on a{color:#fff; font-size:15px;width: 140px;height: 35px;display: block;line-height: 35px;background: #017bc4;}
#tablit .out{color:#666; font-size:15px;width: 140px;height: 35px;display: block;line-height: 35px;border: 1px solid #666;}
#tablit .out a{color:#333; font-size:15px;}
.tabcon{width:940px;; height:auto; clear:both; padding-top:30px; margin:0 auto;}
.dis{display:none;}
#showdiv1,#showdiv10{display: block;}
.tabcon{width:940px;;}
.tabcon > table > tbody > tr > td { float: left; padding-left: 0 !important; width:170px; height:170px;margin-left: 15px; margin-bottom: 2.5%; position: relative;overflow: hidden;}
.tabcon > table > tbody > tr > td:first-child{margin-left: 0px;}
.tabcon > table > tbody > tr > td:nth-child(6){margin-left: 0px;}

.box{ 
  width:285px;
  height:241px;
  position:relative;
  cursor:pointer;
  border: 1px solid #ccc;
 }
.box .bmbox{ 
  width:150px; 
  height:40px; 
  line-height: 40px;
  position:absolute; 
  bottom:0px; 
  left:0px; 
  font-size: 14px;
  color: #333;
  text-align:center;
 }
.box .bmbox a{display: block !important;width: 170px;height: 40px;}
.box .bmbox a:hover{color: #fff;}
.box:hover .bmbox a{color: #fff;}
.box:hover .bmbox{
  width:170px; 
  height:40px; 
  line-height: 40px;
  background:#0643ad; 
  position:absolute; 
  bottom:0px; 
  left:0px; 
  display:block;
  font-size: 14px;
  color:#fff;
  text-align:center;
 }
#tablit .cha{width: 175px;height: 35px;line-height: 35px;text-align: center;margin: 0 auto;margin-top: 25px;border: 1px solid #ccc;}
#tablit .cha a{color: #666;font-size: 14px;}
</style>
<div class="tabcon  dis" id="showdiv1" style="display: block;">
			<div class="change">
				<div class="thh on">推荐浏览</div>
			</div>
					<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
						<tbody><tr>
						{pc:content action="lists" catid="2" order="rand()" num="10"}
						{loop $data $r}
						<td class="box">
							<div class="cp"><a href="{$r[url]}"><img src="{$r[thumb]}" alt="{$r[title]}" title="{$r[title]}" style="display:block;max-width:80%;height:auto;max-height:120px;margin:20px auto;"></a></div> 
  							<div class="bmbox"><a href="{$r[url]}">{str_cut($r[title],30)}</a></div>
						</td>
						{/loop}
						{/pc}
						
				</tr></tbody></table>
            </div>
                    <div class="clear"></div>
<style>
/* 推荐资讯样式 */
.gr-rec-news{width:920px;margin-top:10px;overflow:hidden;}
.gr-rec-news ul{width:920px;padding-top:10px;}
.gr-rec-news ul li{float:left;margin-right:35px;width:425px;height:28px;line-height:28px;}
.gr-rec-news ul li a{font-size:14px;display:block;width:300px;line-height:28px;background:url(http://www.szzhongjie.cn/Themes/Home/Default/Public/images/icona.jpg) no-repeat left center;padding-left:15px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;float:left;}
.gr-rec-news ul li span{float:right;color:#999;}
.rec-title{padding-left:20px;height:35px;line-height:35px;background:url(http://www.szzhongjie.cn/Themes/Home/Default/Public/images/page_line.jpg) no-repeat 10px 10px #ddd;font-size:14px;font-weight:bold;color:#333;}

</style>
<div class="gr-rec-news">
                <div class="change">
						<div class="thh on">相关资讯</div>
						<!-- <div class="thh">参数</div> -->
					</div>
                <ul>
					{pc:content action="lists" catid="5" order="rand()" num="12"}
					{loop $data $r}
						<li style="padding:5px 0;"><a href="{$r[url]}">{$r[title]}</a><span>{date("Y-m-d",$r[updatetime])}</span></li>
					{/loop}
					{/pc}
                    
				</ul>
            </div>
			<div class="clear"></div>
                </div>
            </div>
			<div class="main_left grid_23 floatR ov_h">
                <div class="classify">
                    <h3>
                        产品中心
                        <p>Product Center</p>
                    </h3>
                    <script type="text/javascript" src="{JS_PATH}my/jquery-1.8.0.min.js"></script>
                    <script type="text/javascript" src="{JS_PATH}my/index.js"></script>
                    <div class="left_nav">
                        <ul>
                            {php $i=1}
                            {pc:content action="category" catid="2" order="listorder asc"}
                            {loop $data $r}
                            <li>
                               <a href="{$r[url]}" style="color:#0643ad;font-size: 18px;font-weight: normal">{$r[catname]}</a>
                            </li>
                            <div class="sts" {if $CATEGORYS[$catid][parentid]==$r[catid] || ($catid==2 && $i==1)}style="display:block"{else}style="display:none"{/if}>
                                <ul>
                                    {pc:content action="category" catid="$r[catid]" return="data2"}
                                    {loop $data2 $v}
                                    <li><a href="{$v[url]}#main" {if $catid==$v[catid]}class="on"{/if}>{$v[catname]}</a></li>
                                    {/loop}
                                    {/pc}
                                </ul>
                            </div>
                            {php $i++}
                            {/loop}
                            {/pc}
                        </ul>
                    </div>
                </div>
                {template "content","right"}
                <!-- <div class="classify" style="margin-top: 20px">
                    <h3>
                        相关资讯
                        <p>Latest News</p>
                    </h3>
                    <ul>
                        {pc:content action="lists" catid="5" num="8"}
                        {loop $data $r}
                        <li  class="current" style="height: 51px;overflow: hidden">
                            <a href="{$r[url]}" title="{$r[title]}" target="_self">{$r[title]}</a>
                        </li>
                        {/loop}
                        {/pc}
                    </ul>
                </div> -->
            </div>
            <!--End left-->
        </div>
    </div>
    <!--End right-->
</div>




<style>
.buffalo-a{
    display:inline-block;width:118px;height:38px;line-height:38px;text-align:center;background:red;color:#fff;font-size:24px;font-weight:700;
}
</style>
<script type="text/javascript">
    $(function(){
        var length = $('#smallimg_list li').length;
        $('#scrol').width(92*length);
        var k = 0;
        $('#next').click(function(){
            if( k < length-3 ){
                k++;
                $('#scrol').animate({'marginLeft':'-'+92*k+'px'});
            }
        })
        $('#prev').click(function(){
            if( k > 0 ){
                k--;
                $('#scrol').animate({'marginLeft':'-'+92*k+'px'});
            }
        })
        $('#smallimg_list li').click(function(){
            var curImg = $(this).find('img').attr('src');
            $('#bigimg').find('img').attr('src',curImg.replace('80X60_',''));
        })
    })
</script>
{template "content","foot"}